<template>
	<view class="box" :style="{'padding-top':systemHeight+29+'px'}">
		<view class="head">
			<image class="back" src="/static/img/back.png" @click="back()"></image>
			<view>Details</view>
			<view class="right"></view>
		</view>
		<view class="content">
			<view class="row" v-for="item in 99">
				<view class="pro_name">Promotion</view>
				<view class="time">2025-04-23</view>
				<view class="row_right">
					+ MK200
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemHeight: null
			}
		},
		created() {
			this.systemHeight = uni.getSystemInfoSync().statusBarHeight
		},
		methods: {
			back() {
				uni.navigateBack()
			},
			rule() {
				uni.navigateTo({
					url: "/pages/promotion/rules"
				})
			}
		}
	}
</script>

<style>
	.box {
		position: fixed;
		width: 100%;
		height: 100vh;
	}

	.head {
		margin: 0rpx auto 67rpx;
		width: 92%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-family: Mont;
		font-weight: bold;
		font-size: 32rpx;
	}

	.back {
		width: 18rpx;
		height: 30rpx;
	}

	.right {
		width: 18rpx;
	}
	.content{
		margin: 0rpx auto;
		width: 92%;
		height: 80vh;
		overflow-y: auto;
	}
	.row {
		position: relative;
		border-bottom: 1rpx solid #F4F4F4;
		margin-bottom: 34rpx;
		padding-bottom: 41rpx;
	}

	.pro_name {
		font-family: Mont;
		font-weight: 500;
		font-size: 28rpx;
		margin-bottom: 15rpx;
	}

	.time {
		font-family: Mont;
		font-weight: 500;
		font-size: 24rpx;
		color: #666666;
	}

	.row_right {
		position: absolute;
		right: 0;
		top: 50%;
		transform: translate(0, -50%);
		font-family: Mont;
		font-weight: bold;
		font-size: 24rpx;
	}
</style>